package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.GxPerformance;
import com.ruoyi.system.domain.vo.PerformVo;
import com.ruoyi.system.domain.vo.StatisticsVo;

/**
 * 绩效Service接口
 *
 * @author ruoyi
 * @date 2023-05-15
 */
public interface IGxPerformanceService
{
    /**
     * 查询绩效
     *
     * @param performanceId 绩效主键
     * @return 绩效
     */
    public GxPerformance selectGxPerformanceByPerformanceId(Long performanceId);

    /**
     * 查询绩效列表
     *
     * @param gxPerformance 绩效
     * @return 绩效集合
     */
    public List<GxPerformance> selectGxPerformanceList(GxPerformance gxPerformance);

    public List<StatisticsVo> selectGxPerformanceByUserAndDateRange(PerformVo performVo);

    /**
     * 新增绩效
     *
     * @param gxPerformance 绩效
     * @return 结果
     */
    public int insertGxPerformance(GxPerformance gxPerformance);

    /**
     * 修改绩效
     *
     * @param gxPerformance 绩效
     * @return 结果
     */
    public int updateGxPerformance(GxPerformance gxPerformance);

    /**
     * 批量删除绩效
     *
     * @param performanceIds 需要删除的绩效主键集合
     * @return 结果
     */
    public int deleteGxPerformanceByPerformanceIds(Long[] performanceIds);

    /**
     * 删除绩效信息
     *
     * @param performanceId 绩效主键
     * @return 结果
     */
    public int deleteGxPerformanceByPerformanceId(Long performanceId);
}
